<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_articles_category
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>




<div class="one">
    <div class="ppb_title">
        <h4><?php echo $module->title ?></h4>
    </div>
    
    <div class="ppb_desc">
        <a href="#">/ Read Our Blog</a>
    </div>
    <br class="clear"/>
    
    
    
    
    
    
    <?php foreach ($list as $key => $item) : ?>
		<?php
			$images = json_decode($item->images);
			$metadata = json_decode($item->metadata);
			//var_dump($item);
		?>
		
                <div class="post_wrapper one_third <?php if($key%3 == 2) echo "last" ?>">
        <a href="<?php echo $item->link; ?>">
            <div class="post_third_img_wrapper">
                <img src="<?php echo $images->image_intro ?>" alt=""/>
                <div class="post_third_img_overlay">
                    <div class="overlay_icon_circle">
                        <img src="<?php echo JURI::base() ?>/templates/trista/images/icon_link.png" alt="" class=""/>
                    </div>
                </div>
            </div>
        </a>
        <br class="clear"/>
        <div class="post_header_wrapper">
            <div class="post_header half">
                <h5>
                    <a href="<?php echo $item->link; ?>">
                        <?php echo $item->title; ?>
                    </a>
                </h5>
                <div class="post_detail">
                    <div class="post_detail_item">Date: <?php echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC2')) ?></div>
                </div>
            </div>
        </div>
        <div class="post_excerpt half">
            <?php echo $item->displayIntrotext ?>
            <br/><br/>
            <a class="button" href="<?php echo $item->link; ?>">
                Read The Rest →</a></div>
    </div>
                
                
                
	<?php endforeach; ?>
    
    
    
    
    
</div>






